<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="unsubmit">详情</view>
			<view :class="['inv-h',Inv==1?'inv-h-se':'']" @click="submit" v-if="options.id!=0">处理</view>
		</view>

		<view class="" style="margin-top: 100upx;position: absolute;width: 100%;">
			<view class="formPage" v-if="Inv==0">
				<form>
					<view class="formPage-titel">
						<view>
							质量工作在线沟通
						</view>
					<!-- 	<image v-if="basic==1" @click="downUp(1)" style="width:7%;height: 60%;"
							src="@/static/chevron-down.png" alt />
						<image v-if="basic==2" @click="downUp(2)" style="width:7%;height: 60%;"
							src="@/static/chevron-up.png" alt /> -->
					</view>

					<fromItem v-if="basic==1" title="涉及单位" flex="right" nameColor="#989898" projectName="#343434"
						:data="totalData.fCheckunit"></fromItem>

					<fromItem v-if="basic==1" title="涉及项目" :data="totalData.fCheckproject" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="网格员类别" :data="totalData.fGridmantype" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="指定网格员" flex="right" nameColor="#989898" projectName="#343434"
						:data="totalData.fSubgridmanname">
					</fromItem>
					<fromItem v-if="basic==1" title="存在问题简述" :data="totalData.fProblemdescription" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="发现问题日期" :data="totalData.fHasproblemdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="填报人" :data="totalData.fReportname" flex="right" nameColor="#989898"
						projectName="#343434">
					</fromItem>
					<fromItem v-if="basic==1" title="填报日期" :data="totalData.fReportdates" flex="right"
						nameColor="#989898" projectName="#343434">
					</fromItem>

					<fromItem v-if="basic==1" title="相关现场资料" flex="left" nameColor="#989898" projectName="#343434">
					</fromItem>
					<view class="fileList" v-if="basic==1">
						<div class="box" v-if="fileList.length !== 0">
							<div class="file" style v-for="(item, index) in fileList" :key="index"
								>
								<image v-if="item.fFileType=='.pdf'" @click="pdfPage(item.name, item.url)" src="@/static/organization.png">
													</image>
													<view v-else style="height: 100%;" :data-url="item.url">
														<image  style="height: 200upx;" :src="item.url" @tap="ViewImage($event, item.url)"></image>
													</view>
								<span class="text" style>{{ item.name }}</span>
							</div>
						</div>
					</view>

					<view class="cu-form-group" style="margin-bottom: 50upx;">
					</view>


				</form>



			</view>


			<view class="formPage" v-if="Inv==1">
				<form>
					<!-- 问题处理情况  -->
					<view style="width: 100%;">
						<view class="formPage-titel">
							<view>
								问题处理情况
							</view>
							<!-- <image v-if="close==1" @click="downUpClose(1)" style="width:7%;height: 60%;"
								src="@/static/chevron-down.png" alt />
							<image v-if="close==2" @click="downUpClose(2)" style="width:7%;height: 60%;"
								src="@/static/chevron-up.png" alt />
 -->
						</view>
						<fromItem v-if="close==1" title="处理结果" flex="right" nameColor="#989898" projectName="#343434"
							:data="totalData.fCheckresult"></fromItem>
						<fromItem v-if="close==1" title="问题处理简述" flex="right" nameColor="#989898" projectName="#343434"
							:data="totalData.fCheckdescription"></fromItem>
						<fromItem v-if="close==1" title="网格员" flex="right" nameColor="#989898" projectName="#343434"
							:data="totalData.fGridmanname"></fromItem>
						<fromItem v-if="close==1" title="完成日期" flex="right" nameColor="#989898" projectName="#343434"
							:data="totalData.fCheckdates"></fromItem>
						<fromItem v-if="close==1" title="处理过程相关资料" flex="left" nameColor="#989898"
							projectName="#343434">
						</fromItem>
						<view class="fileList" v-if="close==1">
							<div class="box" v-if="fRecheckfileList.length !== 0">
								<div class="file" style v-for="(item, index) in fRecheckfileList" :key="index"
									>
									<image v-if="item.fFileType=='.pdf'" @click="pdfPage(item.name, item.url)"
										src="@/static/organization.png">
									</image>
									<view v-else style="height: 100%;" :data-url="item.url">
										<image style="height: 200upx;" :src="item.url"
											@tap="ViewImage($event, item.url)"></image>
									</view>
									<span class="text" style>{{ item.name }}</span>
								</div>
							</div>
						</view>

						<view class="cu-form-group" style="margin-bottom: 50upx;">
						</view>

					</view>


					<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor"
						:width="width" :height="height" ref="loading" :custom="false" :type="1" @callback="callback()">

					</loading>

				</form>

			</view>


		</view>


	</view>
</template>

<script src="./index.js">
</script>
<style scoped lang="less">
	@import './index.less';
</style>
